<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>新闻列表</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="description" content="Write an awesome description for your new site here. You can edit this line in _config.yml. It will appear in your document head meta (for Google search results) and in your feed.xml site description.">
    <link rel="stylesheet" href="../../../static/wxui/lib/weui.min.css" th:href="@{/wxui/lib/weui.min.css}">
    <link rel="stylesheet" href="../../../static/wxui/css/jquery-weui.css" th:href="@{/wxui/css/jquery-weui.css}">
    <link rel="stylesheet" href="../../../static/wxui/css/style.css" th:href="@{/wxui/css/style.css}">
</head>
<body ontouchstart>
<!--主体-->
<header class="wy-header">
    <div class="wy-header-icon-back"><span></span></div>
    <div class="wy-header-title">新闻列表</div>
</header>
<div class="weui-content">
    <div class="weui-cells wy-news-list">
        <a class="weui-cell weui-cell_access" th:each="news:${newsList}"  th:href="@{/news/front/detail(id=${news.id})}">
            <div class="weui-cell__bd">
                <p th:text="${news.title}"></p>
            </div>
            <div class="weui-cell__ft"></div>
        </a>
    </div>

</div>

<script src="../../../static/wxui/lib/jquery-2.1.4.js" th:src="@{/wxui/lib/jquery-2.1.4.js}"></script>
<script src="../../../static/wxui/lib/fastclick.js" th:src="@{/wxui/lib/fastclick.js}"></script>
<script src="../../../static/wxui/js/jquery.Spinner.js" th:src="@{/wxui/js/jquery.Spinner.js}"></script>
<script>
    $(function() {
        FastClick.attach(document.body);
        $(".wy-header-icon-back").click(function(){
            window.history.back();
        });
    });
</script>

<script src="../../../static/wxui/js/jquery-weui.js" th:src="@{/wxui/js/jquery-weui.js}"></script>
</body>
</html>
